Page({
  data: {
    isOpen: true,
    message: 'hello world!',
    isLogin: false,
    loaded: false,
    students: [
      {id: 1, name: '贺洋', age: 20, gender: '男', level: '菜鸟'},
      {id: 2, name: '唐刚', age: 18, gender: '女', level: '笨鸟'},
      {id: 3, name: '常超', age: 20, gender: '女', level: '老鸟'}
    ],
    history: ['苹果', '华为', 'OPPO', '三星']
  },
  changeLogin() {
    this.setData({
      isLogin: !this.data.isLogin
    })
  },
  changeLoaded() {
    this.setData({
      loaded: !this.data.loaded
    })
  }
})